package com.gagakuai.engine.delegate;

import com.gagakuai.engine.impl.delegate.DelegateExecution;

import java.io.Serializable;

/*
 * @program: common-starters
 * @description: 执行监听器
 * @author: houhong
 * @create: 2023-04-30 15:23
 */
public interface ExecutionListener extends Serializable {
    /*
     * 节点开始的事件
     */
    String EVENT_NAME_START = "start";
    /*
     * 节点结束的事件
     */
    String EVENT_NAME_END = "end";
    /*
     * 途径连线触发的事件
     */
    String EVENT_NAME_TAKE = "take";

    /*
     * @return
     * @Author houhong
     * @Description //TODO
     * @Date 3:25 下午 2023/4/30
     * @Param * @param
     */
    void notify(DelegateExecution execution) throws Exception;

}